<?php

class TeamController
{

    public function teamList()
    {
        $id = $_GET['id'];
        
        // $t =new TeamModel();
        $t = Factory::M('team');

        $team         = $t->findTeam($id);
        $playersCount = $t->playerCount($id);
        $players      = $t->getPlayers($id);
        // var_dump($players);

        require './app/home/view/team_v.html';

    }
}
